package com.xh.core.properties;

import com.xh.core.properties.editor.EditorProperties;
import com.xh.core.properties.ffmpeg.FfmpegProperties;
import com.xh.core.properties.upload.UploadProperties;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/*
 * @Author daiwei
 * @Description
 * @Date 2018/8/10 16:37
 **/
@Component
@Configuration
@ConfigurationProperties(prefix="xh")
@Data
public class XhProperties {
    private String encodeSalt="";
    private String cookieDomain;
    private boolean exportLog=false;
    private Integer loginExpireTime=30;
    private String cacheType;
    private String cachePrefixKey;
    private String longwenApiHost;
    private boolean checkLoginToken=false;
    
    private PathProperties path;

    private UploadProperties upload;

    private EditorProperties editor;

    private boolean sendMsg = true;

    private String jyAccountPrefix;

    private FfmpegProperties ffmpeg;

    /**
     * 对接教务系统数据来源（主要查询班级排课数据：1：新舟TMS；2：飞鸿TMS；3:学邦TMS；4：校宝TMS；5：校管家TMS）
     */
    private Integer tmsSource;
}